package org.apache.dubbo.demo.example.eg8;

import java.io.Serializable;
import org.hibernate.validator.constraints.NotBlank;

public class User implements Serializable {
  @NotBlank(message = "name cannot be null!")
  private String name;

  @NotBlank(message = "email cannot be null!")
  private String email;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }
}
